package com.ideal.frame.excepion;

import com.ideal.frame.entity.BaseCode;
import lombok.Getter;

@Getter
public class BizException extends RuntimeException {
    private BaseCode code;
    public BizException(BaseCode code){
        this.code = code;
    }

    @Override
    public String getMessage() {
        return code.getMessage();
    }
}
